﻿<UserControl x:Class="SharePointOptimizer.PL.WPF.OverviewReportsControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            xmlns:viewer="clr-namespace:Microsoft.Reporting.WinForms;assembly=Microsoft.ReportViewer.WinForms"
            	
             mc:Ignorable="d" 
             d:DesignHeight="544" d:DesignWidth="1444" Loaded="UserControl_Loaded">
    
    <Grid Width="950" Margin="0,-16,-700,135" Height="399">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="6*" />
            <ColumnDefinition Width="944*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="23*" />
            <RowDefinition Height="376*" />
        </Grid.RowDefinitions>
        <WindowsFormsHost Name="wfh_report" Height="386" Width="853" HorizontalAlignment="Left" VerticalAlignment="Top"    Margin="-11,48,0,0" Grid.Row="1" Grid.ColumnSpan="2">
            <viewer:ReportViewer ProcessingMode="Local" BorderStyle="None" Name="rpt" Visible="true" ShowToolBar="True" ZoomMode="PageWidth"></viewer:ReportViewer>
        </WindowsFormsHost>
        <ComboBox Height="20" HorizontalAlignment="Left" Margin="91,12,0,0" Name="cboReports" VerticalAlignment="Top" Width="150" SelectionChanged="cboReports_SelectionChanged" Grid.Column="1" Grid.Row="1">
            <ComboBoxItem Content="Farm overview" />
            <ComboBoxItem Content="WebApplications and SiteCollections" />
            <ComboBoxItem Content="Services Applications" />
            <ComboBoxItem Content="Top Lists" />
            <ComboBoxItem Content="Top Sites" />
            <ComboBoxItem Content="Slowest TimerJobs" />
            <ComboBoxItem Content="Most Active Users" />
            <ComboBoxItem Content="Slowest Pages" />
        </ComboBox>
        <Button                      
            HorizontalAlignment="Left" 
            Margin="698,3,0,0" 
            Name="btnShowReport" 
            VerticalAlignment="Top" 
            Width="37"
            Height="34"
            Click="btnShowReport_Click"
            Style="{StaticResource GlassButton}"
            ToolTip="Show Report" Grid.Column="1" Grid.Row="1">
            <Image Width="38" Height="32" Source="Images\reports.png" ImageFailed="Image_ImageFailed" />
        </Button>
        <Label Content="Choose Report" Height="28" HorizontalAlignment="Left" Margin="20,18,0,0" Name="label1" VerticalAlignment="Top" Width="71" Foreground="White" FontSize="9.333" Grid.Row="1" Grid.Column="1" />
    </Grid>
</UserControl>
